set(base_SRCS
  AsyncLogging.cc
  Condition.cc
  CountDownLatch.cc
  CurrentThread.cc
  Date.cc
  Exception.cc
  FileUtil.cc
  LogFile.cc
  Logging.cc
  LogStream.cc
  ProcessInfo.cc
  Timestamp.cc
  TimeZone.cc
  Thread.cc
  ThreadPool.cc
  )

add_library(muduo_base ${base_SRCS})

target_link_libraries(muduo_base pthread rt)

target_include_directories(muduo_base PUBLIC ${PROJECT_SOURCE_DIR})

set_target_properties(muduo_base PROPERTIES
    CXX_STANDARD 20
    CXX_STANDARD_REQUIRED ON
)